<%@page import="java.net.URLEncoder"%>
<%@page import="java.net.URLDecoder"%>
<%@page import="ae.pcfc.etks.online.itworx.ehs.web.util.UtilCommon" %>
<%@page import="ae.pcfc.etks.online.web.ViewUtils" %>

<%

String adminCtx = UtilCommon.getGeneralMapValue("adminContextPath");

String serverURL = UtilCommon.getGeneralMapValue("serverURL");
String requestedPage = ViewUtils.getCurrentRequestedPage(request);

//String url="/"+adminCtx+"/login.htm?redirect="+URLEncoder.encode(serverURL + requestedPage, "UTF-8");
String url="/"+adminCtx+"/login.htm?redirect="+URLEncoder.encode(requestedPage, "UTF-8");
response.sendRedirect(url);

%>
